﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SharppiFlowEditor.views;
using SharppiFlowEditor.models;
using System.Drawing;
using System.Windows.Forms;

namespace SharppiFlowEditor.controllers
{
    public class NewDocumentController : AbstractController
    {
        private static int number = 0;

        public NewDocumentController(AppView appView, AppModel appModel)
        {
            Model = appModel;
            View = appView;
        }

        public void newDocoment(int width, int height)
        {
            // lisää mahdollisen avoinna olevan diagrammin tallennusta tiedusteleva dialogi !!

            View.document.GraphDocument = Model.NewDocument("Default", width, height);
            number++;
            View.DocPropView.SelectedDocument = View.document.GraphDocument;
            View.DocPropView.updatePropertiesView();
        }

    }
}
